package com.leyou.gateway.controller;

import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <h3>leyou-project</h3>
 * <p></p>
 *
 * @author : hhw
 * @date : 2020-05-20 20:37
 **/
@RestController
public class FallBackController {

    @GetMapping("/hystrix/fallback")
    public ResponseEntity<String> fallBackController(){
        return ResponseEntity.status(HttpStatus.GATEWAY_TIMEOUT).body("网关请求超时");
    }
}
